package com.yuelife.service.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:admin
 * @Description:SProduct构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "SProduct",value = "SProduct")
@Table(name="s_product")
public class SProduct implements Serializable{

	@ApiModelProperty(value = "商品主键(自增长)",required = false)
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "serviceId")
	private Integer serviceId;//商品主键(自增长)

	@ApiModelProperty(value = "服务名称",required = false)
    @Column(name = "serviceId")
	private String serviceName;//服务名称

	@ApiModelProperty(value = "服务价格",required = false)
    @Column(name = "servicePrice")
	private String servicePrice;//服务价格

	@ApiModelProperty(value = "促销价格",required = false)
    @Column(name = "promotion_price")
	private String promotionPrice;//促销价格

	@ApiModelProperty(value = "服务描述",required = false)
    @Column(name = "description")
	private String description;//服务描述

	@ApiModelProperty(value = "图片",required = false)
    @Column(name = "img")
	private String img;//图片

	@ApiModelProperty(value = "销量",required = false)
    @Column(name = "sale")
	private String sale;//销量

	@ApiModelProperty(value = "折扣",required = false)
    @Column(name = "discount")
	private String discount;//折扣

	@ApiModelProperty(value = "商品分类名称",required = false)
    @Column(name = "good_category_pname")
	private String goodCategoryPname;//商品分类名称

	@ApiModelProperty(value = "商品分类id",required = false)
    @Column(name = "good_category_pid")
	private Integer goodCategoryPid;//商品分类id

	@ApiModelProperty(value = "所属商家id",required = false)
    @Column(name = "storeId")
	private Integer storeId;//所属商家id

	@ApiModelProperty(value = "点赞数量",required = false)
    @Column(name = "likes")
	private Integer likes;//点赞数量

	@ApiModelProperty(value = "上架下架",required = false)
    @Column(name = "status")
	private Integer status;//上架下架

	@ApiModelProperty(value = "创建时间",required = false)
    @Column(name = "createtime")
	private Date createtime;//创建时间

	@ApiModelProperty(value = "修改时间",required = false)
    @Column(name = "changetime")
	private Date changetime;//修改时间

	@ApiModelProperty(value = "评分",required = false)
    @Column(name = "score")
	private Integer score;//评分

	private SStore sStore;//一个产品对应一个商家

	public SStore getsStore() {
		return sStore;
	}

	public void setsStore(SStore sStore) {
		this.sStore = sStore;
	}

	//get方法
	public Integer getServiceId() {
		return serviceId;
	}

	//set方法
	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}
	//get方法
	public String getServiceName() {
		return serviceName;
	}

	//set方法
	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}
	//get方法
	public String getServicePrice() {
		return servicePrice;
	}

	//set方法
	public void setServicePrice(String servicePrice) {
		this.servicePrice = servicePrice;
	}
	//get方法
	public String getPromotionPrice() {
		return promotionPrice;
	}

	//set方法
	public void setPromotionPrice(String promotionPrice) {
		this.promotionPrice = promotionPrice;
	}
	//get方法
	public String getDescription() {
		return description;
	}

	//set方法
	public void setDescription(String description) {
		this.description = description;
	}
	//get方法
	public String getImg() {
		return img;
	}

	//set方法
	public void setImg(String img) {
		this.img = img;
	}
	//get方法
	public String getSale() {
		return sale;
	}

	//set方法
	public void setSale(String sale) {
		this.sale = sale;
	}
	//get方法
	public String getDiscount() {
		return discount;
	}

	//set方法
	public void setDiscount(String discount) {
		this.discount = discount;
	}
	//get方法
	public String getGoodCategoryPname() {
		return goodCategoryPname;
	}

	//set方法
	public void setGoodCategoryPname(String goodCategoryPname) {
		this.goodCategoryPname = goodCategoryPname;
	}
	//get方法
	public Integer getGoodCategoryPid() {
		return goodCategoryPid;
	}

	//set方法
	public void setGoodCategoryPid(Integer goodCategoryPid) {
		this.goodCategoryPid = goodCategoryPid;
	}
	//get方法
	public Integer getStoreId() {
		return storeId;
	}

	//set方法
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	//get方法
	public Integer getLikes() {
		return likes;
	}

	//set方法
	public void setLikes(Integer likes) {
		this.likes = likes;
	}
	//get方法
	public Integer getStatus() {
		return status;
	}

	//set方法
	public void setStatus(Integer status) {
		this.status = status;
	}
	//get方法
	public Date getCreatetime() {
		return createtime;
	}

	//set方法
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	//get方法
	public Date getChangetime() {
		return changetime;
	}

	//set方法
	public void setChangetime(Date changetime) {
		this.changetime = changetime;
	}
	//get方法
	public Integer getScore() {
		return score;
	}

	//set方法
	public void setScore(Integer score) {
		this.score = score;
	}


}
